package com.jy.modules.cims.common;

import java.util.HashMap;
import java.util.Map;

public class CimsIrtUrlConstant {

	public static final String IRT_QUOTAAPPLY_OPERTYPE_NEW = "new"; // 新建额度申请

	public static final String IRT_QUOTAAPPLY_OPERTYPE_CANCEL = "cancel"; // 取消额度申请

	public static final String IRT_QUOTAAPPLY_OPERTYPE_QUERY = "query"; // 查询额度申请

	// 系统来源
	public static final String IRT_SYSSOURCE_BEFLOAN = "1"; // 贷前系统
	public static final String IRT_SYSSOURCE_COLLATERAL = "2"; // 押品系统
	public static final String IRT_SYSSOURCE_MASTERDATA = "3"; // 主数据系统

	/**接口系统来源*/
	public static final String IRT_SYSSOURCE = "4"; 

	public static final String IRT_QUOTAAPPLY_LOAN_TYPE_NEW = "1"; // 新建

	public static final String IRT_QUOTAAPPLY_LOAN_TYPE_CANCEL = "2"; // 取消

	public static final String IRT_LOAN_APPROVE_SUCCESS = "6"; // 审批成功

	public static final String IRT_LOAN_APPROVE_FAIL = "7"; // 审批失败

	public static final String IRT_LOAN_FUNDOUT_SUCCESS = "8"; // 放款成功

	public static final String IRT_LOAN_FUNDOUT_FAIL = "9"; // 放款失败

	public static final String IRT_QUOTAAPPLY_CREDIT_TYPE_NEW = "01"; // 债权申请状态

	public static final String IRT_CODE = "code"; // 接口编码

	public static final String IRT_URL = "url"; // 接口地址

	public static final String IRT_BUSICODE = "busiCode"; // 业务编码

	public static final String IS_QUERY = "isQuery"; // 查询接口

	public static final String IS_QUERY_Y = "1"; // 是查询

	public static final String IS_QUERY_N = "0"; // 不是

	// 核心系统接口
	public static final String IRT_QUOTAAPPLY_LOAN = "4001"; // 贷款额度申请

	public static final String IRT_QUOTAAPPLY_LOAN_RESULT = "4002"; // 贷款返回结果查询

	public static final String IRT_LOAN_UNLOCK = "4003"; // 贷款驳回

	public static final String IRT_LOAN_APPROVE = "4004"; // 贷款审批确认

	public static final String IRT_LOAN_FUNDOUT = "4005"; // 贷款放款确认

	public static final String IRT_QUOTAAPPLY_CREDIT = "4024"; // 债权额度申请

	public static final String IRT_QUOTAAPPLY_CREDIT_RESULT = "4025"; // 债权返回结果查询

	public static final String IRT_QUOTAAPPLY_CREDIT_CANCEL = "4027"; // 债权额度取消

	public static final String IRT_CREDIT_UNLOCK = "4021"; // 债权释放

	public static final String IRT_CREDIT_APPROVE = "4022"; // 债权审批确认

	public static final String IRT_CREDIT_REDEEM = "4023"; // 债权赎回

	public static final String IRT_CREDIT_SINGLE_QUERY = "4026"; // 单笔债权查询

	public static final String IRT_CREDIT_REPAYPLAN_QUERY = "4016"; // 还款计划查询

	public static final String IRT_CREDIT_VALUE_QUERY = "4028"; // 还款计划查询
	
	/**
	 * 新天报表：非代扣主动还款(认款信息)
	 */
	public static final String IRT_LOAN_NOWITHHOLDINGACTIVEREPAYMEN_QUERY = "4007";

	/**
	 * 新天报表：一次性结清提前还款明细
	 */
	public static final String IRT_LOAN_ADVANCEFINISH_QUERY = "4008";

	/**
	 * 新天报表：银行账户变更
	 */
	public static final String IRT_LOAN_BANKACCCHANGE_QUERY = "4009";

	/**
	 * 新天报表：预缴提前还款明细
	 */
	public static final String IRT_LOAN_ADVANCEREPAYMENT_QUERY = "4010";
	
	/**
	 * 贷款回盘结果
	 */
	public static final String IRT_LOAN_OFFER_RESULT_QUERY = "4012";
	
	/**
	 * 查询结算信息
	 */
	public static final String IRT_SETTLE_RESULT_QUERY = "4035";

	/**
	 * 核心接口日终状态查询
	 */
	public static final String IRT_CORE_STATUS_QUERY = "4017";

	// 贷前系统接口
	public static final String IRT_LOAN_INFO = "8001"; // 获取贷款原始信息
	public static final String IRT_BORROWERS_INFO = "8003"; // 获取借款人信息
	
	/**
     * 押品系统附件表信息查询
     */
	public static final String IRT_COLLATERAL_INFO_QUERY = "2011";
	
	/**
     * 公共信息查询
     */
	public static final String IRT_PUBLIC_INFO_QUERY = "4011";
	
	/**
     * 发送受让债权给核心系统
     */
	public static final String IRT_SEND_SRCREDIT_TO_CORE = "4029";
	
	/**
     * 撤销发送给核心系统的受让债权
     */
	public static final String IRT_CANCEL_SRCREDIT_TO_CORE = "4036";
	
	/**
	 * 贷款转出批量回购
	 * */
	public static final String IRT_LOAN_TRANSFER_REDEEM_TO_CORE = "4037";   
	/**
	 * 债权受让赎回接口4038
	 * */
	public static final String IRT_SRCREDIT_TRANSFER_REDEEM_TO_CORE = "4038";   
	
	/**
	 * 债权转让赎回结算4039
	 * */
	public static final String IRT_ZRCREDIT_REDEEM_SETTLE_TO_CORE = "4039"; 
	
	/**
	 * 虚拟月还挂账 4040
	 * */
	public static final String IRT_CREDIT_VR_GZ_TO_CORE = "4040"; 
	
	/**
	 * 二次购买 4041
	 * */
	public static final String IRT_CREDIT_TWO_BUY_TO_CORE = "4041"; 
	
	/**
	 * 二次购买撤销 4046
	 * */
	public static final String IRT_CREDIT_TWO_BUY_TO_CORE_Return = "4046"; 
	
	/**
	 * 二次匹配债权接口
	 * */
	public static final String IRT_CREDIT_TWO_BUY_TO_CORE_AUTOPRETEND = "4050"; 
	
	/**
	 * 月还现金结算 4042
	 * */
	public static final String IRT_CREDIT_MONTHCASH_REPAY_TO_CORE = "4042"; 
	
	/**
	 * 结清债权现金结算 4043
	 * */
	public static final String IRT_CREDIT_CASH_SETTLE_TO_CORE = "4043"; 

	/**
	 * 发送结算申请 4044
	 * */
	public static final String IRT_CREDIT_SETTLE__APPLY_TO_CORE = "4044"; 
	
	/**
	 * 贷款回购结算申请 4049
	 * */
	public static final String IRT_LOAN_BUYBACK_SETTLE_APPLY_TO_CORE = "4049";
	
	/**
	 * 贷款回购结算申请 4048
	 * */
	public static final String IRT_LOAN_SETTLE_APPLY_TO_CORE = "4048";
	
	/**
	 * 影像文件回传8011
	 */
	public static final String IRT_LOAN_SIGN_URL_DATA_CODE = "8011";
	

	/**
	 * 风险金入库
	 * */
	public static final String IRT_FUNDS_RISK_INSERT_4051 = "4051"; 
	
	public static Map<String, Map<String, String>> interactCfg = new HashMap<String, Map<String, String>>();
	static {
		interactCfg.clear();

		Map<String, String> val = new HashMap<String, String>();
		interactCfg.put(IRT_QUOTAAPPLY_LOAN, val);
		val.put(IRT_CODE, "4001");
		val.put(IRT_URL, "/api/cmm/4001/v1");
		val.put(IRT_BUSICODE, "BPB01");

		val = new HashMap<String, String>();
		interactCfg.put(IRT_QUOTAAPPLY_LOAN_RESULT, val);
		val.put(IRT_CODE, "4002");
		val.put(IRT_URL, "/api/cmm/4002/v1");
		val.put(IRT_BUSICODE, "BPB02");
		val.put(IS_QUERY, IS_QUERY_Y);

		val = new HashMap<String, String>();
		interactCfg.put(IRT_LOAN_UNLOCK, val);
		val.put(IRT_CODE, "4003");
		val.put(IRT_URL, "/api/cmm/4003/v1");
		val.put(IRT_BUSICODE, "BPB03");

		val = new HashMap<String, String>();
		interactCfg.put(IRT_LOAN_APPROVE, val);
		val.put(IRT_CODE, "4004");
		val.put(IRT_URL, "/api/cmm/4004/v1");
		val.put(IRT_BUSICODE, "BPB04");

		val = new HashMap<String, String>();
		interactCfg.put(IRT_LOAN_FUNDOUT, val);
		val.put(IRT_CODE, "4005");
		val.put(IRT_URL, "/api/cmm/4005/v1");
		val.put(IRT_BUSICODE, "BPB05");

		val = new HashMap<String, String>();
		interactCfg.put(IRT_QUOTAAPPLY_CREDIT, val);
		val.put(IRT_CODE, "4024");
		val.put(IRT_URL, "/api/cmm/4024/v1");
		val.put(IRT_BUSICODE, "BPB06");

		val = new HashMap<String, String>();
		interactCfg.put(IRT_QUOTAAPPLY_CREDIT_RESULT, val);
		val.put(IRT_CODE, "4025");
		val.put(IRT_URL, "/api/cmm/4025/v1");
		val.put(IRT_BUSICODE, "BPB09");
		val.put(IS_QUERY, IS_QUERY_Y);

		val = new HashMap<String, String>();
		interactCfg.put(IRT_QUOTAAPPLY_CREDIT_CANCEL, val);
		val.put(IRT_CODE, "4027");
		val.put(IRT_URL, "/api/cmm/4027/v1");
		val.put(IRT_BUSICODE, "BPB07");

		val = new HashMap<String, String>();
		interactCfg.put(IRT_CREDIT_UNLOCK, val);
		val.put(IRT_CODE, "4021");
		val.put(IRT_URL, "/api/cmm/4021/v1");
		val.put(IRT_BUSICODE, "BPB10");

		val = new HashMap<String, String>();
		interactCfg.put(IRT_CREDIT_APPROVE, val);
		val.put(IRT_CODE, "4022");
		val.put(IRT_URL, "/api/cmm/4022/v1");
		val.put(IRT_BUSICODE, "BPB11");

		val = new HashMap<String, String>();
		interactCfg.put(IRT_CREDIT_REDEEM, val);
		val.put(IRT_CODE, "4023");
//		val.put(IRT_URL, "/api/match/4023/v1");
		val.put(IRT_URL, "/api/cmm/4023/v1");
		val.put(IRT_BUSICODE, "BPB12");

		val = new HashMap<String, String>();
		interactCfg.put(IRT_CREDIT_SINGLE_QUERY, val);
		val.put(IRT_CODE, "4026");
		val.put(IRT_URL, "/api/cmm/4026/v1");
		val.put(IRT_BUSICODE, "BPB08");
		val.put(IS_QUERY, IS_QUERY_Y);

		val = new HashMap<String, String>();
		val.put(IRT_CODE, IRT_LOAN_INFO);
		val.put(IRT_URL, "/api/befloan/contract/lbTContractInfo/search/v1");
		val.put(IRT_BUSICODE, "LOB01");
		val.put(IS_QUERY, IS_QUERY_Y);
		interactCfg.put(IRT_LOAN_INFO, val);
		
		val = new HashMap<String, String>();
		val.put(IRT_CODE, IRT_BORROWERS_INFO);
		val.put(IRT_URL, "/api/befloan/tbjInstitutionRest/search/v1");
		val.put(IRT_BUSICODE, "LOANBIZ02");
		val.put(IS_QUERY, IS_QUERY_Y);
		interactCfg.put(IRT_BORROWERS_INFO, val);
		
		val = new HashMap<String, String>();
		interactCfg.put(IRT_CREDIT_REPAYPLAN_QUERY, val);
		val.put(IRT_CODE, "4016");
		val.put(IRT_URL, "/api/cmm/4016/v1");
		val.put(IRT_BUSICODE, "BPB14");
		val.put(IS_QUERY, IS_QUERY_Y);

		val = new HashMap<String, String>();
		interactCfg.put(IRT_CREDIT_VALUE_QUERY, val);
		val.put(IRT_CODE, "4028");
		val.put(IRT_URL, "/api/match/4028/v1");
		val.put(IRT_BUSICODE, "BPB13");
		val.put(IS_QUERY, IS_QUERY_Y);

		val = new HashMap<String, String>();
		interactCfg.put(IRT_LOAN_NOWITHHOLDINGACTIVEREPAYMEN_QUERY, val);
		val.put(IRT_CODE, "4007");
		val.put(IRT_URL, "/api/cmm/4007/v1");
		val.put(IRT_BUSICODE, "BPB16");
		val.put(IS_QUERY, IS_QUERY_Y);

		val = new HashMap<String, String>();
		interactCfg.put(IRT_LOAN_ADVANCEFINISH_QUERY, val);
		val.put(IRT_CODE, "4008");
		val.put(IRT_URL, "/api/cmm/4008/v1");
		val.put(IRT_BUSICODE, "BPB17");
		val.put(IS_QUERY, IS_QUERY_Y);

		val = new HashMap<String, String>();
		interactCfg.put(IRT_LOAN_BANKACCCHANGE_QUERY, val);
		val.put(IRT_CODE, "4009");
		val.put(IRT_URL, "/api/cmm/4009/v1");
		val.put(IRT_BUSICODE, "BPB18");
		val.put(IS_QUERY, IS_QUERY_Y);

		val = new HashMap<String, String>();
		interactCfg.put(IRT_LOAN_ADVANCEREPAYMENT_QUERY, val);
		val.put(IRT_CODE, "4010");
		val.put(IRT_URL, "/api/cmm/4010/v1");
		val.put(IRT_BUSICODE, "BPB19");
		val.put(IS_QUERY, IS_QUERY_Y);

		val = new HashMap<String, String>();
        interactCfg.put(IRT_CORE_STATUS_QUERY, val);
        val.put(IRT_CODE, "4017");
        val.put(IRT_URL, "/api/cmm/4017/v1");
        val.put(IRT_BUSICODE, "BPB15");
        val.put(IS_QUERY, IS_QUERY_Y);
        
        val = new HashMap<String, String>();
        interactCfg.put(IRT_PUBLIC_INFO_QUERY, val);
        val.put(IRT_CODE, "4011");
        val.put(IRT_URL, "/api/cmm/4011/v1");
        val.put(IRT_BUSICODE, "BPB20");
        val.put(IS_QUERY, IS_QUERY_Y);
        
        val = new HashMap<String, String>();
        interactCfg.put(IRT_SEND_SRCREDIT_TO_CORE, val);
        val.put(IRT_CODE, "4029");
        val.put(IRT_URL, "/api/cmm/4029/v1");
        val.put(IRT_BUSICODE, "BPO02");
        
        val = new HashMap<String, String>();
        interactCfg.put(IRT_CANCEL_SRCREDIT_TO_CORE, val);
        val.put(IRT_CODE, "4036");
        val.put(IRT_URL, "/api/cmm/4036/v1");
        val.put(IRT_BUSICODE, "BPB26");
        
        val = new HashMap<String, String>();
        interactCfg.put(IRT_LOAN_OFFER_RESULT_QUERY, val);
        val.put(IRT_CODE, "4012");
        val.put(IRT_URL, "/api/cmm/4012/v1");
        val.put(IRT_BUSICODE, "BPB23");
        val.put(IS_QUERY, IS_QUERY_Y);
        
        val = new HashMap<String, String>();
        interactCfg.put(IRT_SETTLE_RESULT_QUERY, val);
        val.put(IRT_CODE, "4035");
        val.put(IRT_URL, "/api/cmm/4035/v1");
        val.put(IRT_BUSICODE, "BPB25");
        val.put(IS_QUERY, IS_QUERY_Y);
        
        val = new HashMap<String, String>();
        interactCfg.put(IRT_COLLATERAL_INFO_QUERY, val);
        val.put(IRT_CODE, "2011");
        val.put(IRT_URL, "/api/cms/2011/v1");
        val.put(IRT_BUSICODE, "LBB11");
        val.put(IS_QUERY, IS_QUERY_Y);
        
        val = new HashMap<String, String>();
		interactCfg.put(IRT_LOAN_TRANSFER_REDEEM_TO_CORE, val);
		val.put(IRT_CODE, "4037");
		val.put(IRT_URL, "/api/cmm/4037/v1");
		val.put(IRT_BUSICODE, "BPB28");
		
		val = new HashMap<String, String>();
		interactCfg.put(IRT_SRCREDIT_TRANSFER_REDEEM_TO_CORE, val);
		val.put(IRT_CODE, "4038");
		val.put(IRT_URL, "/api/cmm/4038/v1");
		val.put(IRT_BUSICODE, "BPB29");
        
		/**
		 * 结算新增的接口
		 * auter: zhangmi
		 */
		val = new HashMap<String, String>();
		interactCfg.put(IRT_ZRCREDIT_REDEEM_SETTLE_TO_CORE, val);
		val.put(IRT_CODE, "4039");
		val.put(IRT_URL, "/api/cmm/4039/v1");
		val.put(IRT_BUSICODE, "BPB31");
		
		val = new HashMap<String, String>();
		interactCfg.put(IRT_CREDIT_VR_GZ_TO_CORE, val);
		val.put(IRT_CODE, "4040");
		val.put(IRT_URL, "/api/cmm/4040/v1");
		val.put(IRT_BUSICODE, "BPB32");
		
		val = new HashMap<String, String>();
		interactCfg.put(IRT_CREDIT_TWO_BUY_TO_CORE, val);
		val.put(IRT_CODE, "4041");
		val.put(IRT_URL, "/api/cmm/4041/v1");
		val.put(IRT_BUSICODE, "BPB33");
		

		val = new HashMap<String, String>();
		interactCfg.put(IRT_CREDIT_MONTHCASH_REPAY_TO_CORE, val);
		val.put(IRT_CODE, "4042");
		val.put(IRT_URL, "/api/cmm/4042/v1");
		val.put(IRT_BUSICODE, "BPB34");
		
		val = new HashMap<String, String>();
		interactCfg.put(IRT_CREDIT_CASH_SETTLE_TO_CORE, val);
		val.put(IRT_CODE, "4043");
		val.put(IRT_URL, "/api/cmm/4043/v1");
		val.put(IRT_BUSICODE, "BPB35");
		
		val = new HashMap<String, String>();
		interactCfg.put(IRT_CREDIT_SETTLE__APPLY_TO_CORE, val);
		val.put(IRT_CODE, "4044");
		val.put(IRT_URL, "/api/cmm/4044/v1");
		val.put(IRT_BUSICODE, "BPB30");
		
		val = new HashMap<String, String>();
		interactCfg.put(IRT_CREDIT_TWO_BUY_TO_CORE_Return, val);
		val.put(IRT_CODE, "4046");
		val.put(IRT_URL, "/api/cmm/4046/v1");
		val.put(IRT_BUSICODE, "BPB37");
		
		val = new HashMap<String, String>();
		interactCfg.put(IRT_LOAN_BUYBACK_SETTLE_APPLY_TO_CORE, val);
		val.put(IRT_CODE, "4049");
		val.put(IRT_URL, "/api/cmm/4049/v1");
		val.put(IRT_BUSICODE, "BPB40");
		
		val = new HashMap<String, String>();
		interactCfg.put(IRT_LOAN_SETTLE_APPLY_TO_CORE, val);
		val.put(IRT_CODE, "4048");
		val.put(IRT_URL, "/api/cmm/4048/v1");
		val.put(IRT_BUSICODE, "BPB39");

		val = new HashMap<String, String>();
		interactCfg.put(IRT_LOAN_SIGN_URL_DATA_CODE, val);
		val.put(IRT_CODE, "8011");
		val.put(IRT_URL, "/api/befloan/attachReturnInform/8011/v1");
		val.put(IRT_BUSICODE, "FJHC");
		
		val = new HashMap<String, String>();
		interactCfg.put(IRT_CREDIT_TWO_BUY_TO_CORE_AUTOPRETEND, val);
		val.put(IRT_CODE, "4050");
		val.put(IRT_URL, "/api/cmm/4050/v1");
		val.put(IRT_BUSICODE, "BPB56");
		
		
		val = new HashMap<String, String>();
		interactCfg.put(IRT_FUNDS_RISK_INSERT_4051, val);
		val.put(IRT_CODE, "4051");
		val.put(IRT_URL, "/api/cmm/4051/v1");
		val.put(IRT_BUSICODE, "BPB51");
	}

}
